package Entidades;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="Rol")
@Inheritance(strategy=InheritanceType.JOINED)
public abstract class Rol implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id @GeneratedValue(strategy=GenerationType.AUTO)
	@Column(nullable=false,name="idRol")
	private int idRol;
	
	@Column(nullable=false, length=20, name="rol")
	private String rol;
	
	@Column(nullable=true, length=50, name="descripcion")
	private String descripcion;

	public Rol() {
		// TODO Auto-generated constructor stub
	}

	public Rol(int idRol, String rol, String descripcion) {
		this.idRol = idRol;
		this.rol = rol;
		this.descripcion = descripcion;
	}
	
}


